import { request } from '@/services/request';

import type { getProviderListParams,providerParams,updateProviderParams,createProviderParams } from './data';

//获取供应商列表
export async function getProviderList(data: getProviderListParams) {
    return request('/adminapi/getProviderList', {
        params: data,
    });
}

//删除供应商信息
export async function deleteProvider(data: providerParams) {
    return request('/adminapi/deleteProvider', {
        params: data,
    });
}

//获取供应商详情
export async function getProviderInfo(data: providerParams) {
    return request('/adminapi/getProviderInfo', {
        params: data,
    });
}


//新增供应商
export async function createProvider(data: createProviderParams) {
    return request('/adminapi/createProvider', {
        params: data,
    });
}


//更新供应商详情
export async function updateProvider(data: updateProviderParams) {
    return request('/adminapi/updateProvider', {
        params: data,
    });
}


